package com.idealighter.game.mail.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.mail.manager.MailMgr;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;

@ReqMsgHandler(ModuleMsgIdConstant.Mail.MAIL_LIST)
public class ReqMailListHandler implements ReqMessageHandler {

  @Inject
  private MailMgr mailMgr;

  @Override
  public ResMessage action(Player player, ReqMessage msg) {
    return mailMgr.mailList(player);
  }

}
